<!--<?php print <<<EOT
-->
<div id="att_mode" style="display:none"><div>&nbsp;描述: <input class="input" type="text" name="atc_desc" size="20" /> &nbsp;附件: <input class="input" type="file" name="attachment_" /></div></div>
<script language="JavaScript" src="data/cache/smile.js"></script>
<tr class="b"><td width="30%" height="30" class="bold">日志标题: </td>
<td><input name="atc_title" size="35" value="$atc[subject]"></td></tr>
<tr class="b"><td height="30" class="bold">系统分类: </td>
<td><select name="atc_cid" style="width:150px;">
$categpslt
</select><input name="atc_oldcid" type="hidden" value="$cid"></td></tr>
<tr class="b"><td height="30" class="bold">个人日志分类: </td>
<td><select name="atc_dirid" id="dirgpslt" style="width:150px;">
<option value="0">未分类</option>
$dirgpslt
</select>
<input type="button" id="dirbutton" value="管理" onclick="ShowDir()"><br />
<span id="dirspan" style="width:300;margin:5px 0px 0px 0px;z-index:100;display:none;">
<table cellspacing="0" cellpadding="3">
<tbody id="dirtbody">
<tr><td height="30">分类名称</td>
<td>顺序</td></tr>
<tr><td align="center" height="30"><input name="dirname" id="dirname" size="15"></td>
<td><input name="dirorder" id="dirorder" size="5">
<input type="button" value="添加" onclick="AddDir()"></td></tr>
<!--
EOT;
foreach($dirarray as $key => $value){print <<<EOT
-->
<tr id="dir{$key}"><td align="center" height="30"><input id="dirnames{$key}" size="15" value="{$value[name]}"></td>
<td><input id="dirorders{$key}" size="5" value="{$value[vieworder]}">
<a style="cursor:pointer" onclick="EditDir('{$key}')" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';">修改</a>
<a style="cursor:pointer" onclick="DeleteDir('{$key}')" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';">删除</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
</table>
</span></td></tr>
<tr class="b"><td height="30" class="bold">心 情: </td>
<td>
	<input type="radio" name="atc_iconid1" value="1"$icon1_1><img border=0 src='$imgpath/emotion/1.gif'>
	<input type="radio" name="atc_iconid1" value="2"$icon1_2><img border=0 src='$imgpath/emotion/2.gif'>
	<input type="radio" name="atc_iconid1" value="3"$icon1_3><img border=0 src='$imgpath/emotion/3.gif'>
	<input type="radio" name="atc_iconid1" value="4"$icon1_4><img border=0 src='$imgpath/emotion/4.gif'>
	<input type="radio" name="atc_iconid1" value="5"$icon1_5><img border=0 src='$imgpath/emotion/5.gif'>
	<input type="radio" name="atc_iconid1" value="6"$icon1_6><img border=0 src='$imgpath/emotion/6.gif'>
	<input type="radio" name="atc_iconid1" value="7"$icon1_7><img border=0 src='$imgpath/emotion/7.gif'>
	<input type="radio" name="atc_iconid1" value="0"$icon1_0>无
</td>
</tr>
<tr class="b"><td height="30" class="bold">天　气: </td>
<td>
	<input type="radio" name="atc_iconid2" value="1"$icon2_1><img border=0 src='$imgpath/weather/1.gif' alt='晴'>
	<input type="radio" name="atc_iconid2" value="2"$icon2_2><img border=0 src='$imgpath/weather/2.gif' alt='雨'>
	<input type="radio" name="atc_iconid2" value="3"$icon2_3><img border=0 src='$imgpath/weather/3.gif' alt='多云'>
	<input type="radio" name="atc_iconid2" value="4"$icon2_4><img border=0 src='$imgpath/weather/4.gif' alt='阴'>
	<input type="radio" name="atc_iconid2" value="5"$icon2_5><img border=0 src='$imgpath/weather/5.gif' alt='雪'>
	<input type="radio" name="atc_iconid2" value="6"$icon2_6><img border=0 src='$imgpath/weather/6.gif' alt='雷阵雨'>
	<input type="radio" name="atc_iconid2" value="7"$icon2_7><img border=0 src='$imgpath/weather/7.gif' alt='风'>
	<input type="radio" name="atc_iconid2" value="0"$icon2_0>无
</td>
</tr>
<tr class="b"><td height="30" class="bold">关键字（Tag）: </td>
<td>
<span id="taglist"$tdisplay>
<!--
EOT;
foreach($tagdb as $value){print <<<EOT
-->
<a style="cursor:pointer" title="点击删除此Tag" onclick="DeleteTag(this,'$value')" style="padding-right:3px;">$value<input name="atc_tagdb[]" type="hidden" value="$value"></a>
<!--
EOT;
}print <<<EOT
-->
<br />
</span>
<input id="tagname" size="35" onkeydown="if(event.keyCode==13) {AddTag(GE('tagname').value);return false;}" value="">
<input type="button" value="添加Tag" onclick="AddTag(GE('tagname').value)"></td></tr>
<tr class="b"><td height="30" valign="top"><br /><b>内 容</b>: <br /><br />
<div id="menu_smile" class="menu" style="display:none;"></div>
评论设置: 
<select name="atc_allowreply">
<option value="1" $allowreply_1>允许</option>
<option value="0" $allowreply_0>不许</option>
</select><br /><br />
共享设置: 
<select name="atc_ifhide">
<option value="0"$ifhide_0>完全共享</option>
<option value="2"$ifhide_2>好友可见</option>
<option value="1"$ifhide_1>彻底隐藏</option>
</select></td>
<td><table cellspacing="0" cellpadding="3" width="100%">
<tr class="b"><td height="30">
<!--
EOT;
if($_GROUP['htmlcode']){print <<<EOT
-->
<input type="checkbox" name="atc_htmlcode" id="atc_html" value="1" $html_CK> 使用html代码
<!--
EOT;
}print <<<EOT
-->
<input type="checkbox" name="atc_ifsign" value="1" $ifsign_CK> 使用签名
<input type="checkbox" name="atc_autourl" value="1" CHECKED> 自动分析url<br />
<!--
EOT;
include PrintEot('wysiwyg');print <<<EOT
-->
<span id="showmsg" style="color:red;margin-top:5px;padding:6px;display:none;"></span>
<!--
EOT;
include PrintEot('upload');print<<<EOT
-->
</td></tr>
</table>
</td></tr>
<!--
EOT;
?>